#include "iarna.h"

iaRNA::iaRNA(QWidget *parent)
    : QMainWindow(parent)
{
	ui.setupUi(this);
}

iaRNA::~iaRNA()
{

}

void iaRNA::cargarRed(){
	if(this->ui.actionAdaline_Sigmoide->isChecked()){
		QString filename = QFileDialog::getOpenFileName(this, "Elige un Archivo", "./",
														"Modelos (*.ina)");
		if (!filename.isEmpty()){
			//emit ( adalineChanged(filename) );
		}
	}

	if(this->ui.actionPerceptron_Simple->isChecked()){
		QString filename = QFileDialog::getOpenFileName(this, "Elige un Archivo", "./",
														"Modelos (*.ins)");
		if (!filename.isEmpty()){
			//emit ( perceptronSimpleChanged(filename) );
		}
	}

	if(this->ui.actionPerceptron_Simple_Heaviside->isChecked()){
		QString filename = QFileDialog::getOpenFileName(this, "Elige un Archivo", "./",
														"Configuracion (*.inh)");
		if (!filename.isEmpty()){
			//emit ( perceptronHeavisideChanged(filename) );
		}
	}
}

void iaRNA::cargarDatos(){
	if(this->ui.actionAdaline_Sigmoide->isChecked()){
		QString filename = QFileDialog::getOpenFileName(this, "Elige un Archivo", "./",
														"Modelos (*.data)");
		if (!filename.isEmpty()){
			//emit ( adalineData(filename) );
		}
	}
	if(this->ui.actionPerceptron_Simple->isChecked()){
		QString filename = QFileDialog::getOpenFileName(this, "Elige un Archivo", "./",
														"Modelos (*.dats)");
		if (!filename.isEmpty()){
			//emit ( perceptronSimpleData(filename) );
		}
	}

	if(this->ui.actionPerceptron_Simple_Heaviside->isChecked()){
		QString filename = QFileDialog::getOpenFileName(this, "Elige un Archivo", "./",
														"Modelos (*.dath)");
		if (!filename.isEmpty()){
			//emit ( perceptronHeavisideData(filename) );
		}
	}
}
